﻿using Avalonia.Controls;
using Avalonia.Interactivity;
using MusicFluent.Models;
using MusicFluent.Views;

namespace MusicFluent.Pages;

public partial class SettingView : UserControl
{
    public SettingView()
    {
        InitializeComponent();
    }

    private void LogoutClick(object? sender, RoutedEventArgs e)
    {
        var window = ViewOpera.GetView<MainWindow>(this);
        window?.Logout();
    }
}